/*
SteelNzb
Copyright (C) 2008  Wessel v. Staal

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef REMOTECTRL_INCLUDED
#define REMOTECTRL_INCLUDED

#include "stats.h"

#define MAX_COMMAND_KEY_SIZE 255
#define MAX_COMMAND_VALUE_SIZE 255

void* remotectrl_create(int port, void* stats);
void remotectrl_start(void* remotectrl);
void remotectrl_sendLogMessage(void* remotectrl, char* message);
void remotectrl_setUserData(void* remotectrl, void* userData);
void remotectrl_setCommandCallback(void* remotectrl, void (*remoteCtrlCommand)(void*, char* key, char* value));
void remotectrl_free(void* remotectrl);
void remotectrl_setVersion(void* remotectrl, char* version);
void remotectrl_setFileReceivedCallback(void* remotectrl, void (*fileReceivedCallback)(void*, char*, char* path, long size));

#endif
